﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SceneTester
{
    public class GameInput
    {

        public delegate void KeyDown(Keys key);

        public KeyDown KeyDownEvent;

        private static GameInput instance;

        private GameInput()
        {

        }

        public static GameInput GetInstance()
        {
            instance = instance ?? new GameInput();
            return instance;
        }

        public void NotifyKeyDown(Keys key)
        {
            if (KeyDownEvent != null)
            {
                KeyDownEvent(key);
            }
        }

    }
}
